import request from '@/utils/request'

// 查询老师-学生中间关系列表
export function listTeacher_student(query) {
  return request({
    url: '/horse/teacher_student/getCourseList',
    method: 'get',
    params: query
  })
}

// 查询老师-学生中间关系详细
export function getTeacher_student(id) {
  return request({
    url: '/horse/teacher_student/' + id,
    method: 'get'
  })
}

// 新增老师-学生中间关系
export function addTeacher_student(data) {
  return request({
    url: '/horse/teacher_student',
    method: 'post',
    data: data
  })
}

// 修改老师-学生中间关系
export function updateTeacher_student(data) {
  return request({
    url: '/horse/teacher_student',
    method: 'put',
    data: data
  })
}

// 删除老师-学生中间关系
export function delTeacher_student(id) {
  return request({
    url: '/horse/teacher_student/' + id,
    method: 'delete'
  })
}

// 课程教授列表
// export function tutor_list(query) {
//   return request({
//     url: '/horse/teacher_student/tutorList',
//     method: 'get',
//     params: query
//   })
// }

// export function listTeacher_student(query) {
//   return request({
//     url: '/horse/teacher_student/list',
//     method: 'get',
//     params: query
//   })
// }
